package com.kgar.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.util.Objects;


@Data
@TableName("job_info")
public class JobInfo {
    @TableId(value = "job_id",type = IdType.AUTO)
    private Integer jobId;
    private String company;
    private String title;
    private String salary;
    private String education;
    private String description;
    private String hiringManager;
    private String lastActive ="刚刚活跃";
    private String address;
    private String link = "";
    private String tags;

    @TableField(exist = false)
    private Double score;

    @Override
    public boolean equals(Object obj) {
        if (this == obj) return true;
        if (obj == null || getClass() != obj.getClass()) return false;
        JobInfo jobInfo = (JobInfo) obj;
        return Objects.equals(jobId, jobInfo.jobId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(jobId);
    }
}
